package org.example.user.dto;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class CreateUserDTO {

    @NotEmpty(message = "用户名不能为空")
    private String username;
    @NotEmpty(message = "密码不能为空")
    @Pattern(regexp = "^(?=.*\\d)(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9]).{8,}$", message = "密码包含数字字母和特殊符号")
    private String password;
    private String realName;
    private Long deptId;
    private String email;
    private String mobile;
    private Long[] roleIds;
    private String userType;
}
